Micron Document
rns.moscow 🟥 [git]


Commit aa76355dcbfa7a89afd6a1b2acbb00d799e8aed0


Parents : cd6d716
Author : Nickie Deuxyeux <nikolay@dvoeglazov.ru>
Date : 2026-07-16T03:28:44+03:00

Use the authoritative platform byte for ethernetHidden too

The Eth tab hide logic only checked the DEVICE_HARDWARE name-based
fallback, so an nRF52 device whose name wasn't in that table (or
before it resolved) still showed the tab as disabled instead of
hidden. Same precedence fix as wifiSupported(): prefer
connectedPlatform (now that getPlatform() actually works) over the
name guess.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Changes

1 files changed, 4 insertions(+), 0 deletions(-)


Diff

diff --git a/htdocs/index.html b/htdocs/index.html
index 51f140c..8993d9b 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -1594,6 +1594,10 @@ Vue.createApp({
// is fully hidden rather than shown-disabled.
ethernetHidden() {
if (!this.connectedDevice) return false;
+ // Platform byte reported by the RNode firmware is authoritative —
+ // same precedence as wifiSupported() above. Falls back to the
+ // DEVICE_HARDWARE name guess only if that hasn't resolved yet.
+ if (this.connectedPlatform !== null) return this.connectedPlatform === ROM.PLATFORM_NRF52;
const hw = DEVICE_HARDWARE[this.connectedDevice];
return !!hw && hw.chip.startsWith('nRF52');
},

Served by rngit 1.5.0 - Generated in 0.02s